/* 布局样式 */
.app-layout {
  min-height: 100vh;
}

/* 主布局容器 */
.main-layout {
  background: #f5f5f5;
}

/* 头部布局 */
.header-layout {
  background: #ffffff;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
  border-bottom: 1px solid #f0f0f0;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* 侧边栏布局 */
.sider-layout {
  background: #ffffff;
  box-shadow: 2px 0 8px 0 rgba(29, 35, 41, 0.05);
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 999;
}

/* 内容区域布局 */
.content-layout {
  margin-left: 200px;
  min-height: calc(100vh - 64px);
  padding: 24px;
  background: #f5f5f5;
}

/* 页面容器 */
.page-container {
  background: #ffffff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02);
  min-height: calc(100vh - 112px);
}

/* 页面标题 */
.page-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.page-title {
  font-size: 24px;
  font-weight: 600;
  color: #262626;
  margin: 0;
}

.page-subtitle {
  font-size: 14px;
  color: #8c8c8c;
  margin: 8px 0 0 0;
}

/* 面包屑导航 */
.breadcrumb-container {
  margin-bottom: 16px;
  padding: 12px 0;
}

/* 卡片布局 */
.card-layout {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02);
  border: 1px solid #f0f0f0;
  margin-bottom: 24px;
}

.card-header {
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
  border-radius: 8px 8px 0 0;
}

.card-title {
  font-size: 16px;
  font-weight: 500;
  color: #262626;
  margin: 0;
}

.card-body {
  padding: 24px;
}

.card-footer {
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
  border-radius: 0 0 8px 8px;
  text-align: right;
}

/* 网格布局 */
.grid-layout {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* 弹性布局 */
.flex-layout {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.flex-1 {
  flex: 1;
}

.flex-2 {
  flex: 2;
}

.flex-3 {
  flex: 3;
}

/* 响应式布局 */
@media (max-width: 1200px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .content-layout {
    margin-left: 0;
    padding: 16px;
  }
  
  .sider-layout {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .sider-layout.open {
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .flex-layout {
    flex-direction: column;
  }
  
  .page-container {
    padding: 16px;
  }
  
  .card-body {
    padding: 16px;
  }
  
  .header-layout {
    padding: 0 16px;
  }
}

/* 侧边栏折叠状态 */
.sider-collapsed .content-layout {
  margin-left: 80px;
}

/* 登录页面布局 */
.login-layout {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-container {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 40px;
  width: 100%;
}

/* 仪表板布局 */
.dashboard-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  margin-bottom: 24px;
}

.dashboard-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02);
  border: 1px solid #f0f0f0;
}

.dashboard-card-title {
  font-size: 14px;
  color: #8c8c8c;
  margin-bottom: 8px;
}

.dashboard-card-value {
  font-size: 24px;
  font-weight: 600;
  color: #262626;
  margin-bottom: 4px;
}

.dashboard-card-change {
  font-size: 12px;
  color: #52c41a;
}

.dashboard-card-change.negative {
  color: #ff4d4f;
}

/* 表格布局 */
.table-container {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02);
  border: 1px solid #f0f0f0;
}

.table-header {
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-title {
  font-size: 16px;
  font-weight: 500;
  color: #262626;
  margin: 0;
}

.table-actions {
  display: flex;
  gap: 8px;
}

/* 表单布局 */
.form-container {
  background: #ffffff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02);
  border: 1px solid #f0f0f0;
}

.form-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.form-title {
  font-size: 18px;
  font-weight: 500;
  color: #262626;
  margin: 0;
}

.form-body {
  margin-bottom: 24px;
}

.form-footer {
  text-align: right;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

/* 加载状态布局 */
.loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

/* 空状态布局 */
.empty-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: #8c8c8c;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  color: #d9d9d9;
}

.empty-text {
  font-size: 14px;
  margin-bottom: 8px;
}

.empty-description {
  font-size: 12px;
} 